home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15284 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.cern.ch!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: malloc.h
  5. Date: 18 Apr 96 09:22:03 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.829819323@news.cern.ch>
  8. References: <hartigan-1704961430130001@news.sonic.net> <17APR199622174354@erich.triumf.ca>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=US-ASCII
  12. Content-Transfer-Encoding: 7bit
  13. X-Newsreader: NN version 6.5.0 #18 (NOV)
  14.  
  15. In <17APR199622174354@erich.triumf.ca> bennett@erich.triumf.ca (P.Bennett) writes:
  16.  
  17. >In article <hartigan-1704961430130001@news.sonic.net>, hartigan@sonic.net (dennis hartigan) writes...
  18. >>i have some source that i found and it includes a header file named
  19. >><malloc.h>...i have 4 books on C, and not one of them mention this
  20. >>header...can someone tell me what is in this prototype???
  21. >
  22. >Just a wild guess, but I might expect malloc.h to contain prototypes for
  23. >malloc(), free(), etc.
  24.  
  25. If he's on a Unix system, your guess is not only wild, but dead wrong,
  26. as well :-)
  27.  
  28. >Under standard C, these are in stdlib.h.
  29.  
  30. Right.  <malloc.h> on a Unix system contains declarations for stuff like
  31. mallinfo() and mallopt(), which has nothing to do with the C language,
  32. which explains why this header is omitted by the books on C.
  33.  
  34. Dan
  35. --
  36. Dan Pop
  37. CERN, CN Division
  38. Email: danpop@mail.cern.ch 
  39. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  40.